package com.namecard.namecardapi.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;


/**
 * <p>
 * 
 * </p>
 *
 * @author wzx
 * @since 2023-07-03
 */
@TableName(value = "user_info",autoResultMap = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
public class UserInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    private Long id;

    /**
     * 用户id
     */
    private String userId;

    /**
     * 用户名
     */
    private String userName;

    /**
     * 登录令牌
     */
    private String accessToken;

    /**
     * 最后登录时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lastLogin;


    /**
     * 个人简介
     */
    private String personalProfile;


    /**
     * 主题颜色
     */
    private Integer colour;

    /**
     * 语言
     */
    private Integer language;

    /**
     * 国家
     */
    private String country;

    /**
     * 头像路径
     */
    private String userImage;

    /**
     * 年龄
     */
    private Integer age;

}
